package com.gistmap.ntdc.persistence.repo;

import com.gistmap.ntdc.persistence.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author zhangran
 * @date 2018/12/19
 */
public interface UserRepository extends JpaRepository<User, Long> {

    /**
     * 按照openId查找用户
     * @param openId
     * @return
     */
    User findAllByOpenId(String openId);


    User findByToken(String token);
}
